<?php

	define('DEFAULT_INDEX', preg_replace("/.{1,}\/(.{1,})/", "$1", $_SERVER['SCRIPT_NAME']) );
	define('BASE_URL', '' . $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['SERVER_NAME'] . ":80" . str_replace( DEFAULT_INDEX ,'', $_SERVER['SCRIPT_NAME']) );
	define('BASE_PATH', str_replace( DEFAULT_INDEX ,'', $_SERVER['SCRIPT_FILENAME']) );
	define('APP_PATH', BASE_PATH . 'application/' );
	define('APP_URL', BASE_URL . 'application/' );
	define('CORE_PATH', BASE_PATH . 'framework/core/' );

?>